package com.ruoyi.hualian.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.hualian.mapper.HlScrewMapper;
import com.ruoyi.hualian.domain.HlScrew;
import com.ruoyi.hualian.service.IHlScrewService;

/**
 * 螺丝Service业务层处理
 * 
 * @author hujian
 */
@Service
public class HlScrewServiceImpl implements IHlScrewService 
{
    @Autowired
    private HlScrewMapper hlScrewMapper;

    /**
     * 根据集合插入数据库
     * @param hlScrews 集合
     * @return 结果
     */
    @Override
    public int insertList(List<HlScrew> hlScrews) {
        return hlScrewMapper.insertList(hlScrews);
    }


    /**
     * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     */


    /**
     * 查询螺丝
     * 
     * @param screwId 螺丝主键
     * @return 螺丝
     */
    @Override
    public HlScrew selectHlScrewByScrewId(Long screwId)
    {
        return hlScrewMapper.selectHlScrewByScrewId(screwId);
    }

    /**
     * 查询螺丝列表
     * 
     * @param hlScrew 螺丝
     * @return 螺丝
     */
    @Override
    public List<HlScrew> selectHlScrewList(HlScrew hlScrew)
    {
        return hlScrewMapper.selectHlScrewList(hlScrew);
    }

    /**
     * 新增螺丝
     * 
     * @param hlScrew 螺丝
     * @return 结果
     */
    @Override
    public int insertHlScrew(HlScrew hlScrew)
    {
        return hlScrewMapper.insertHlScrew(hlScrew);
    }

    /**
     * 修改螺丝
     * 
     * @param hlScrew 螺丝
     * @return 结果
     */
    @Override
    public int updateHlScrew(HlScrew hlScrew)
    {
        return hlScrewMapper.updateHlScrew(hlScrew);
    }

    /**
     * 批量删除螺丝
     * 
     * @param screwIds 需要删除的螺丝主键
     * @return 结果
     */
    @Override
    public int deleteHlScrewByScrewIds(Long[] screwIds)
    {
        return hlScrewMapper.deleteHlScrewByScrewIds(screwIds);
    }

    /**
     * 删除螺丝信息
     * 
     * @param screwId 螺丝主键
     * @return 结果
     */
    @Override
    public int deleteHlScrewByScrewId(Long screwId)
    {
        return hlScrewMapper.deleteHlScrewByScrewId(screwId);
    }
}
